<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
			<meta name="renderer" content="webkit"> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta content="IE=9" http-equiv="X-UA-Compatible" />
		<link rel="stylesheet" href="/Public/css/reset.css" type="text/css" media="screen" />
		<link rel="stylesheet" href="/Public/css/style_content.css" type="text/css" media="screen" />
		<link href="/Public/css/uploadify.css" rel="stylesheet" type="text/css" />
		<link rel="stylesheet" href="/Public/css/invalid.css" type="text/css" media="screen" />	
<script type="text/javascript" src="/Public/js/jquery-1.10.2.js"></script>
 <script type="text/javascript" src="/Public/js/jquery.uploadify.js"></script>		
 <script type="text/javascript" src="/Public/js/frame_js.js"></script>		
 <style>
.star{color:red;}
.uploadify-queue-item .cancel a {
	background: url('/Public/images/uploadify-cancel.png') 0 0 no-repeat;
}
</style>
	</head>

	<body>
		
		<script src="/Public/js/jquery.form.js" type="text/javascript"></script>
<STYLE>
   .clear {  clear: both;   }
	.input_class{width:15px;height:10px;}
.num{margin: 0 5px 0 0;padding: 3px 6px;color: #57a000;text-decoration: none;border: 1px solid #ddd;-webkit-border-radius: 4px;border-radius: 4px;}
.current{margin: 0 5px 0 0;padding: 3px 6px;color: #57a000;text-decoration: none;border: 1px solid #ddd;-webkit-border-radius: 4px;border-radius: 4px;background: #469400 url('{/Public/images/}bg-button-green.gif') top left repeat-x !important;border-color: #459300 !important;color: #fff !important;}
.star{color:red;}
	</STYLE>
	<div id="main-content">
			<div class="content-box">
				<div class="content-box-header">
					<h3>推荐位列表</h3>
					<div class="clear"></div>
				</div> 
				<div class="content-box-content">
					<div class="tab-content default-tab" id="tab1"> 
						<div class="notification attention png_bg">
							<a href="#" class="close"><img src="/Public/images/cross_grey_small.png" title="Close this notification" alt="close" /></a>
							<div>
								提示！！
							</div>
						</div>
						<table>
							<thead>
								<tr>
								   <th>ID</th>
								   <th>名称</th>
								</tr>
							</thead>
							<tfoot>
								<tr>
									<td colspan="6">
										<div class="bulk-actions align-left">
											<a class="button" href="/admin/search/add" target="_blank"  >修改</a>
											<a class="button" href="javascript:" onclick="upKey();"  >更新</a>
											<div id="start" style="margin-top:10px;"></div>
										</div>
										<div class="clear"></div>
									</td>
								</tr>
							</tfoot>
						 
							<tbody>
							<form action="/admin/WebSet/listorder" method="post" id="listorder">
								<input type="hidden" name="cate_id" value="<?php echo ($cate['id']); ?>"/>
								<?php if(is_array($list)): foreach($list as $key=>$vo): ?><tr>
									<td><?php echo ($vo['id']); ?></td>
									<td><?php echo ($vo['name']); ?></td>
								</tr><?php endforeach; endif; ?>
							</form>
							</tbody>
						</table>
					</div> 
				</div> 
			</div> 
		</div> 
		<script>
	function upKey(){
			if(confirm("确定更新?(更新时间会稍长)")){
				$("#start").text("正在更新...");
			$.post('/admin/search/upKey',{},function(data){
					if(data){
						$("#start").text("更新成功!");
						}else{
							$("#start").text("更新失败!");
						}
				});

				}
		}

		</script>

	</body>
  
</html>